package cn.samler.project.guestbook.model.request;

import lombok.Data;

import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;

@Data
public class UserRegisterRequest {
    @NotNull(message = "参数错误")
    @NotEmpty(message = "用户名不能为空")
    private String username;

    @NotNull(message = "参数错误")
    @NotEmpty(message = "密码不能为空")
    private String password;

    @NotNull(message = "参数错误")
    @NotEmpty(message = "确认密码不能为空")
    private String confirmPassword;
}
